package lab02.test06;

public class Test06 {
    public static void main(String[] args) {
        Triangle triangle = new Triangle(3.0, 4.0, 5.0);
        Ladder ladder = new Ladder(3.2, 5.2, 3);
        Circle circle = new Circle(4.0);

        //三角形
        System.out.println("能不能围成三角形" + triangle.judge());
        System.out.println("三角形的周长" + triangle.girtf());
        System.out.println("三角形的面积" + triangle.area());
        triangle.revise(1, 10, 8);
        System.out.println("能不能围成三角形" + triangle.judge());
        System.out.println("三角形的周长" + triangle.girtf());
        System.out.println("三角形的面积" + triangle.area());

        //梯形
        System.out.println("梯形的面积" + ladder.area());

        //圆
        System.out.println("圆的周长" + circle.girtf());
        System.out.println("圆的面积" + circle.area());
    }
}
